home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 27 (1992-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 27 (1992-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / Articles / Hints_&_Tips / Hints_&_Tips
Text File  |  1992-03-30  |  11KB  |  254 lines

  1.  
  2.  
  3.                                  HINTS & TIPS  
  4.  
  5.                                by Tim Strachan
  6.  
  7.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  8.  
  9.  
  10.  
  11. WHAT ARE RETURN CODES (RC) ?
  12.  
  13.    Return codes are supposed to clarify things, but I'm sure most people have
  14.   seen "Prog X did not set a return code" or some such piffle and groaned at
  15.   the egregiously computerish nature of it all.
  16.  
  17.    They are designed to let you know if a CLI-launched program (not
  18.   Workbench-launched) went well or not for use in Script Files - on the
  19.   appearance of a particular RC your script can branch into one of two
  20.   possible courses of action.
  21.  
  22. Here's the interpretation:
  23. RC 0 = All's well
  24. RC 1 to 4 = Perhaps a minor problem, nothing that can't be handled
  25. RC 5 to 9 (WARN) = Struggled through, problems not fatal
  26. RC 10 to 19 (ERROR) = Quite a struggle, just made it
  27. RC 20 or more (FAIL) = Sorry, it fell over and broke.
  28. RC  -1 = A secret one which says "never want to hear about this program
  29. again"
  30.  
  31.    So RCs should be built into good programs - Assembly programmers create a
  32.   RC value by putting it into register D0 just before ending the program; C
  33.   programmers use the function Exit(n) where n= RC value.
  34.  
  35.    A Script File (such as your startup-sequence) can test the RC left by a
  36.   program by using the IF command, to enable branching to occur.
  37.  
  38.  
  39.  
  40.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  41.  
  42.  
  43. MORE ON FONTS - See PS_FONTS DRAWER for more info
  44.  
  45. [Thanks to Nick Sullivan for some of this info]
  46.  
  47.    In computerese, "font" refers to a typeface as it appears on screen or in
  48.   a printed document, or to the disk file which holds the description of
  49.   characters in a typeface.
  50.  
  51.    How do printer fonts, screen fonts, DTP fonts, Postscript fonts, etc
  52.   relate to each other?
  53.  
  54. The Amiga's Fonts
  55.  
  56.    The fonts stored on a Workbench disk (in the Fonts directory) or in memory
  57.   (eg, Topaz 8) are just pixel-by-pixel descriptions of each font character,
  58.   plus character spacing and other such info. DPaint and Notepad, for
  59.   example, are designed to use these fonts and can display them from a menu,
  60.   along with the various sizes of each - so "Topaz 8" indicates that the font
  61.   is 8 pixels tall from lowest to highest of all letters. Each character has
  62.   its own width, ie, these fonts are not "fixed width" fonts.
  63.    One drawback is that if you've got Topaz 8, 9 & 11, for example, you can't
  64.   get Topaz 14 since the fonts are predefined. WB2, however, does allow for
  65.   "font scaling", but the results are blocky to say the least.
  66.  
  67. Printer Fonts
  68.  
  69.    Printer fonts are those built into the ROM (Read Only Memory) of a
  70.   printer, and depending on the quality of the printer can be fairly nunerous
  71.   or not. My Epson 500 dot-matrix printer, for example, has Draft, Sans Serif
  72.   and Roman, as well as a setting for "slot", ie, for the fonts provided on
  73.   an optional card (which I've never bothered to buy). Both the Sans serif
  74.   and Roman are NLQ (Near Letter Quality) fonts, meaning the printer simply
  75.   uses more dots to create them than the Draft font. All these fonts are
  76.   fixed width, which allows word processors to calculate how much text will
  77.   fit on each line. It also gives a typewritten look to such printing, rather
  78.   than the typeset look. So if your printed text doesn't look like the font
  79.   on screen, this is the explanation.
  80.  
  81.    When you get flashier Word processors such as Excellence! or ProWrite,
  82.   these enable you to import and use all kinds of "bit-mapped" fonts such as
  83.   the Amiga's fonts. But if you want to output these to the printer looking
  84.   the same, you'll have to do a "graphic dump", such as ProWrite does in
  85.   "normal" print mode. This is slower than sending as simple text, and the
  86.   resolution of the printed font can not be better than the resolution of the
  87.   original font, thus making it look chunky when printed. If you want
  88.   interesting fonts at high resolution, you need to get into using Postscript
  89.   fonts.
  90.  
  91. Postscript Fonts
  92.  
  93.    Postscript is a "page description language" devised by Adobe, and licensed
  94.   to certain laser printers and other Postscript output devices. When you
  95.   print from a DTP program which is Postscript-compatible (such as Pro Page),
  96.   you'll get nice looking output at the maximum resolution of that particular
  97.   printer, such as 300 x 300 dots per inch typically for a laser printer, or
  98.   up to 2500 x 2500 from a Linotronic typesetter.
  99.  
  100.    So Pro Page and Pagestream both need a Postscript device with Postscript
  101.   fonts, as well as corresponding Amiga fonts with "metric files" containing
  102.   info about the widths of characters for correct on-screen representation.
  103.  
  104. Scalable "Outline" Fonts
  105.  
  106.    This is the latest wrinkle in DTP, and uses the same scaling technology
  107.   used in Postscript to allow you to get smooth font outlines at any size on
  108.   screen. Pro Page uses Compugraphic outline fonts (licensed by Gold Disk)
  109.   and another plus is the ability to output the screen to non-Postscript
  110.   printers in high quality. The price for this technology is slower screen
  111.   updates and printing and more memory requirements.
  112.  
  113.    WB2 has the capability of "bitmap scaling" of Amiga fonts, giving your
  114.   Workbench a more professional look.
  115.  
  116. Downloadable fonts
  117.  
  118.    If you use extra Compugraphic outline fonts in Pro Page, for example, it
  119.   is possible to create Postscript downloadable fonts - these are required
  120.   when your Postscript printer doesn't have the particular font you need. Pro
  121.   Page will automatically download (send) to the printer any such font. This
  122.   gives access to many fonts, but requires more memory, time and processing
  123.   power.
  124.  
  125.     Check out the Megadisc PD catalogue for many disks full of fonts, both
  126.   bit-mapped, and other outline fonts suitable for Pagestream.
  127.  
  128.  
  129.  
  130. Changing Type 1 Fonts to ProDraw Fonts
  131.  
  132.    To use the versatile text capabilities of ProDraw you need to have fonts
  133.   in the special clip art format required by ProDraw - which is fine, but
  134.   there are few such fonts available. You can use the utility CreateFont
  135.   provided on the disk to change Compugraphic fonts to this format, but not,
  136.   for example, Type 1 fonts of which there are many available in the public
  137.   domain (on our AmigOz disks, for example).
  138.  
  139.    A company called Mirror Image has produced MIoutline to do so however -
  140.   it's fully automatic, and will produce the necessary .pdfont file and place
  141.   it in the correct directory; it will also produce a "visual index" on your
  142.   Postscript printer - ie, showing which letters require which keys to be
  143.   pressed.
  144.  
  145.    The problem is: I don't know where this company is, or any other details
  146.   of prices, etc. Can anyone help?
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  155.  
  156.  
  157. SNAPSHOTTING A RAM DISK ICON
  158.  
  159.    Copy a disk icon to the directory from where you're going to copy it to
  160.   Ram, and change your startup-sequence to copy 'disk.info' to Ram. When it
  161.   appears as the icon for your Ram disk, snapshot it where you want it to be,
  162.   and then copy that snapshotted icon back to where it sits waiting to be
  163.   copied each time you boot up - don't forget it's called "Disk.info" so
  164.   don't copy it to the root directory of any disk as it will overwrite the
  165.   icon for the current disk.
  166.  
  167.  
  168.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  169.  
  170.  
  171. MEMORY SPEEDS
  172.  
  173.    The Amiga has three types of RAM. Chip-RAM, Fast-RAM and "Slow"-RAM.
  174.   Contrary to what many people assert, RAM at $C00000 (the default location
  175.   of the A501 expander, and the second 512K of RAM in A2000s) is NOT
  176.   fast-RAM, even though the system reports it as such. Because this RAM is
  177.   refreshed and accessed via Agnus, it is affected by buss contention in just
  178.   the same way as chip-RAM. It is simply a dead area in RAM which is not
  179.   accessed by the custom chips and which is not faster than chip-RAM. Moving
  180.   this RAM to $80000 (which is what you do to enable 1Mb chip-RAM) will have
  181.   no effect on machine speed at all.
  182.  
  183.  
  184.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  185.  
  186.  
  187. MORE ON 24-BIT COLOUR
  188.  
  189. [Some info derived from an article by John Lovine]
  190.  
  191.    24 bits is derived by the addtion of 3 8-bit colour components per pixel -
  192.   Red, Green and Blue. Each of the 8-bit colour component numbers can
  193.   represent one of 256 levels of colour. So when we multiply the possible
  194.   combinations of levels of each of the 3 colours we have 256 x 256 x 256 =
  195.   16,777,216 (or 2 to the power of 24). So this is why you hear about 16.7
  196.   million colours (!!! often with lots of exclamation marks).
  197.  
  198.    Now if you wanted to see all those colours on a screen at one time you'd
  199.   need a screen with 16.7 million pixels, or for example, one that was 4096 x
  200.   4096 square... Considering that your normal Amiga PAL screen is 640 x 512
  201.   = 327680, you can see that 24-bit colour is overkill when it comes to
  202.   representing pictures on screen. Indeed if you do a histogram (statistical
  203.   picture with the use of image processing software) of a 24-bit pic, you'll
  204.   find that there may be 100,000 colours, many of which are a single pixel
  205.   only.
  206.  
  207.    The human eye's visual acuity is another factor here - the average eye
  208.   needs a colour change of about 1.5% to register a difference; and each
  209.   change in level of each 8-bit colour component level is a change of about
  210.   .4%, so you need 4 steps of change to be able to perceive a difference,
  211.   which would be minimal anyway.
  212.  
  213.    In 18-bit colour we have 6 bits per colour, giving 64 levels each, thus
  214.   providing 64 x 64 x 64 = 262144. Each change in level represents a 1.56%
  215.   change, thus closely approximating what the human eye can perceive at best.
  216.   This suggests that 24-bit colour is indeed overkill, and in fact there are
  217.   32- and 48-bit systems currently available on the Mac for people who
  218.   seriously overestimate their eyesight. In short, what we need is more
  219.   features in the hardware and software but no more "bits" of colour.
  220.  
  221.  
  222.  
  223.  
  224.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  225.  
  226.  
  227.    A590 TIMER FIX
  228.  
  229.  
  230.    If you find that when your A500 & A590 are switched on together you
  231.   occasionally get the error message "Not a Dos Disk in Unit 0" or the like,
  232.   or the drive takes quite a bit longer to start up, then you probably need
  233.   this simple fix: either turn the A590 on several seconds before the
  234.   computer, or fit a 3 second timer in the 240 volt supply to the A500 power
  235.   supply. This seems to cure the problem.
  236.  
  237.  
  238.    PRINTER RIBBON REJUNVENATION
  239.  
  240.    Simply spray the ribbon with CRC 2-26 or CRC 5-56, by say, soaking a small
  241.   piece of foam rubber and holding it against the ribbon as you rotate it,
  242.   either with a pencil or with your battery powered drill.
  243.  
  244.    Thanks to Steve Hack for these two tips.
  245.  
  246.  
  247.    (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 )) (( 27 ))
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.